package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 产品表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "product")
public class Product implements Serializable {
    public static final String COL_PRODUCT_NO = "product_no";
    public static final String COL_PRODUCT_NAME = "product_name";
    public static final String COL_PRODUCT_TYPE = "product_type";
    public static final String COL_PRODUCT_COSTPRICE = "product_costprice";
    public static final String COL_PRODUCT_UNIT = "product_unit";
    public static final String COL_PRODUCT_CODE = "product_code";
    public static final String COL_PRODUCT_PRICE = "product_price";
    public static final String COL_PRODUCT_DESCRIBE = "product_describe";
    public static final String COL_OWNER_USER_ID = "owner_user_id";
    public static final String COL_PRODUCT_PRIMARY_IMG = "product_primary_img";
    public static final String COL_PRODUCT_DETAIL_IMG = "product_detail_img";
    public static final String COL_CREATE_USER_ID = "create_user_id";
    public static final String COL_CREATE_TIME = "create_time";
    public static final String COL_PRODUCT_STATE = "product_state";
    /**
     * 产品编号
     */
    @TableId(value = "product_no", type = IdType.INPUT)
    private Integer productNo;

    /**
     * 产品名称
     */
    @TableField(value = "product_name")
    private String productName;

    /**
     * 产品类型编号
     */
    @TableField(value = "product_type")
    private Integer productType;

    /**
     * 成本价
     */
    @TableField(value = "product_costprice")
    private BigDecimal productCostprice;

    /**
     * 产品单位(0、默认 1、个 2、块 3、只 4、把 5、枚 6、瓶 7、盒 8、台 9、吨 10、千克 11、米 12、箱 13、套)
     */
    @TableField(value = "product_unit")
    private Integer productUnit;

    /**
     * 产品编码
     */
    @TableField(value = "product_code")
    private Integer productCode;

    /**
     * 价格
     */
    @TableField(value = "product_price")
    private BigDecimal productPrice;

    /**
     * 产品描述
     */
    @TableField(value = "product_describe")
    private String productDescribe;

    /**
     * 负责人
     */
    @TableField(value = "owner_user_id")
    private Integer ownerUserId;

    /**
     * 产品主图
     */
    @TableField(value = "product_primary_img")
    private Integer productPrimaryImg;

    /**
     * 详细图片
     */
    @TableField(value = "product_detail_img")
    private Integer productDetailImg;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private Integer createUserId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 状态(1,上架 2,下架)
     */
    @TableField(value = "product_state")
    private Integer productState;

    private static final long serialVersionUID = 1L;
}